/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package br.valstorm.facade;

import br.valstorm.dao.ProjectDAO;
import br.valstorm.model.Project;
import java.util.List;
import javax.ejb.EJB;
import javax.ejb.Stateless;

/**
 *
 * @author grunitzki
 */
@Stateless
public class ProjectFacadeImp implements ProjectFacade {

    @EJB
    ProjectDAO projectDAO;

    @Override
    public void save(Project object) {
        projectDAO.save(object);
    }

    @Override
    public Project update(Project object) {
        return projectDAO.update(object);
    }

    @Override
    public void delete(Project object) {
        projectDAO.delete(object);
    }

    @Override
    public Project find(Long entityID) {
        return projectDAO.find(entityID);
    }

    @Override
    public List<Project> findAll() {
        return projectDAO.findAll();
    }

}